﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OGS.Utility
{
    public class Settings
    {
        private static SettingsData settingsData = new SettingsData();
        protected static SettingsData Data
        {
            get
            {
                return settingsData;
            }
        }

        /// <summary>
        /// constructor
        /// </summary>
        static Settings()
        {
            Load();
        }

        /// <summary>
        /// Can call externally when needed
        /// </summary>
        public static void Load()
        {
            settingsData.Load();
        }
        
        /// <summary>
        /// Records Per Page
        /// </summary>
        public static int RecordsPerPage
        {
            get
            {
                return Data.GetInt("RecordsPerPage");
            }
        }

        /// <summary>
        /// Site Images Folder Path
        /// </summary>
        public static string SiteImagesFolderPath
        {
            get
            {
                return Data.Get("SiteImagesFolderPath");
            }
        }
    }
}
